package com.kjzz;

import com.kjzz.pojo.Common;
import com.kjzz.pojo.Lucky;
import com.kjzz.pojo.RedPacket;

public class Demo01 {
    public static void main(String[] args) {
        RedPacket rb =new RedPacket("大红包");
        rb.setOwnerName("我是群大大");
        //rb.setOpenWay(new Common());
        rb.setOpenWay(new Lucky());
    }
}
